
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module GUI.lib.pygtkcodebuffer.gtkcodebuffer</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="GUI.html"><font color="#ffffff">GUI</font></a>.<a href="GUI.lib.html"><font color="#ffffff">lib</font></a>.<a href="GUI.lib.pygtkcodebuffer.html"><font color="#ffffff">pygtkcodebuffer</font></a>.gtkcodebuffer</strong></big></big> (version 1.0RC2)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/john/bin/game-baker/trunk/GUI/lib/pygtkcodebuffer/gtkcodebuffer.py">/home/john/bin/game-baker/trunk/GUI/lib/pygtkcodebuffer/gtkcodebuffer.py</a></font></td></tr></table>
    <p><tt>This&nbsp;module&nbsp;contains&nbsp;the&nbsp;PyGTKCodeBuffer-class.&nbsp;This&nbsp;class&nbsp;is&nbsp;a&nbsp;<br>
specialisation&nbsp;of&nbsp;the&nbsp;gtk.<a href="gtk.html#TextBuffer">TextBuffer</a>&nbsp;and&nbsp;enables&nbsp;syntax-highlighting&nbsp;for&nbsp;<br>
PyGTK's&nbsp;TextView-widget.&nbsp;<br>
&nbsp;<br>
To&nbsp;use&nbsp;the&nbsp;syntax-highlighting&nbsp;feature&nbsp;you&nbsp;have&nbsp;load&nbsp;a&nbsp;syntax-definition&nbsp;or<br>
specify&nbsp;your&nbsp;own.&nbsp;To&nbsp;load&nbsp;one&nbsp;please&nbsp;read&nbsp;the&nbsp;docs&nbsp;for&nbsp;the&nbsp;<a href="#SyntaxLoader">SyntaxLoader</a>()<br>
class.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="gtk.html">gtk</a><br>
<a href="imp.html">imp</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
<a href="pango.html">pango</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
<a href="sys.html">sys</a><br>
</td><td width="25%" valign=top><a href="xml.html">xml</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#SyntaxLoader">SyntaxLoader</a>(<a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a>, <a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a>)
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#Pattern">Pattern</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#KeywordList">KeywordList</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#String">String</a>
</font></dt><dt><font face="helvetica, arial"><a href="gtk.html#TextBuffer">gtk.TextBuffer</a>(<a href="gobject._gobject.html#GObject">gobject._gobject.GObject</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#CodeBuffer">CodeBuffer</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#SyntaxLoader">SyntaxLoader</a>(<a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a>, <a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a>)
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CodeBuffer">class <strong>CodeBuffer</strong></a>(<a href="gtk.html#TextBuffer">gtk.TextBuffer</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;extends&nbsp;the&nbsp;gtk.<a href="gtk.html#TextBuffer">TextBuffer</a>&nbsp;to&nbsp;support&nbsp;syntax-highlighting.&nbsp;<br>
You&nbsp;can&nbsp;use&nbsp;this&nbsp;class&nbsp;like&nbsp;a&nbsp;normal&nbsp;<a href="gtk.html#TextBuffer">TextBuffer</a>.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#CodeBuffer">CodeBuffer</a></dd>
<dd><a href="gtk.html#TextBuffer">gtk.TextBuffer</a></dd>
<dd><a href="gobject._gobject.html#GObject">gobject._gobject.GObject</a></dd>
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="CodeBuffer-__init__"><strong>__init__</strong></a>(self, table<font color="#909090">=None</font>, lang<font color="#909090">=None</font>, styles<font color="#909090">={}</font>)</dt><dd><tt>The&nbsp;constructor&nbsp;takes&nbsp;3&nbsp;optional&nbsp;arguments.&nbsp;<br>
&nbsp;<br>
table&nbsp;specifies&nbsp;a&nbsp;tag-table&nbsp;associated&nbsp;with&nbsp;the&nbsp;<a href="gtk.html#TextBuffer">TextBuffer</a>-instance.<br>
This&nbsp;argument&nbsp;will&nbsp;be&nbsp;passed&nbsp;directly&nbsp;to&nbsp;the&nbsp;constructor&nbsp;of&nbsp;the&nbsp;<br>
<a href="gtk.html#TextBuffer">TextBuffer</a>-class.&nbsp;<br>
&nbsp;<br>
lang&nbsp;specifies&nbsp;the&nbsp;language-definition.&nbsp;You&nbsp;have&nbsp;to&nbsp;load&nbsp;one&nbsp;using<br>
the&nbsp;<a href="#SyntaxLoader">SyntaxLoader</a>-class&nbsp;or&nbsp;you&nbsp;may&nbsp;hard-code&nbsp;your&nbsp;syntax-definition&nbsp;<br>
using&nbsp;the&nbsp;<a href="#LanguageDefinition">LanguageDefinition</a>-class.&nbsp;<br>
&nbsp;<br>
styles&nbsp;is&nbsp;a&nbsp;dictionary&nbsp;used&nbsp;to&nbsp;extend&nbsp;or&nbsp;overwrite&nbsp;the&nbsp;default&nbsp;styles<br>
provided&nbsp;by&nbsp;this&nbsp;module&nbsp;(DEFAULT_STYLE)&nbsp;and&nbsp;any&nbsp;language&nbsp;specific&nbsp;<br>
styles&nbsp;defined&nbsp;by&nbsp;the&nbsp;<a href="#LanguageDefinition">LanguageDefinition</a>.</tt></dd></dl>

<dl><dt><a name="CodeBuffer-reset_language"><strong>reset_language</strong></a>(self, lang_def)</dt><dd><tt>Reset&nbsp;the&nbsp;currently&nbsp;used&nbsp;language-definition.</tt></dd></dl>

<dl><dt><a name="CodeBuffer-update_styles"><strong>update_styles</strong></a>(self, styles)</dt><dd><tt>Update&nbsp;styles.&nbsp;This&nbsp;method&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;reset&nbsp;any&nbsp;styles&nbsp;at<br>
runtime.</tt></dd></dl>

<dl><dt><a name="CodeBuffer-update_syntax"><strong>update_syntax</strong></a>(self, start, end<font color="#909090">=None</font>)</dt><dd><tt>More&nbsp;or&nbsp;less&nbsp;internal&nbsp;used&nbsp;method&nbsp;to&nbsp;update&nbsp;the&nbsp;<br>
syntax-highlighting.</tt></dd></dl>

<hr>
Methods inherited from <a href="gtk.html#TextBuffer">gtk.TextBuffer</a>:<br>
<dl><dt><a name="CodeBuffer-add_mark"><strong>add_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-add_selection_clipboard"><strong>add_selection_clipboard</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-apply_tag"><strong>apply_tag</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-apply_tag_by_name"><strong>apply_tag_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-backspace"><strong>backspace</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-begin_user_action"><strong>begin_user_action</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-copy_clipboard"><strong>copy_clipboard</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-create_child_anchor"><strong>create_child_anchor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-create_mark"><strong>create_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-create_tag"><strong>create_tag</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-cut_clipboard"><strong>cut_clipboard</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-delete"><strong>delete</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-delete_interactive"><strong>delete_interactive</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-delete_mark"><strong>delete_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-delete_mark_by_name"><strong>delete_mark_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-delete_selection"><strong>delete_selection</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-deserialize"><strong>deserialize</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-deserialize_get_can_create_tags"><strong>deserialize_get_can_create_tags</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-deserialize_set_can_create_tags"><strong>deserialize_set_can_create_tags</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-end_user_action"><strong>end_user_action</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_bounds"><strong>get_bounds</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_char_count"><strong>get_char_count</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_copy_target_list"><strong>get_copy_target_list</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_deserialize_formats"><strong>get_deserialize_formats</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_end_iter"><strong>get_end_iter</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_has_selection"><strong>get_has_selection</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_insert"><strong>get_insert</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_child_anchor"><strong>get_iter_at_child_anchor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_line"><strong>get_iter_at_line</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_line_index"><strong>get_iter_at_line_index</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_line_offset"><strong>get_iter_at_line_offset</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_mark"><strong>get_iter_at_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_iter_at_offset"><strong>get_iter_at_offset</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_line_count"><strong>get_line_count</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_mark"><strong>get_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_modified"><strong>get_modified</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_paste_target_list"><strong>get_paste_target_list</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_selection_bound"><strong>get_selection_bound</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_selection_bounds"><strong>get_selection_bounds</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_serialize_formats"><strong>get_serialize_formats</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_slice"><strong>get_slice</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_start_iter"><strong>get_start_iter</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_tag_table"><strong>get_tag_table</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_text"><strong>get_text</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert"><strong>insert</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_at_cursor"><strong>insert_at_cursor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_child_anchor"><strong>insert_child_anchor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_interactive"><strong>insert_interactive</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_interactive_at_cursor"><strong>insert_interactive_at_cursor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_pixbuf"><strong>insert_pixbuf</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_range"><strong>insert_range</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_range_interactive"><strong>insert_range_interactive</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_with_tags"><strong>insert_with_tags</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-insert_with_tags_by_name"><strong>insert_with_tags_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-move_mark"><strong>move_mark</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-move_mark_by_name"><strong>move_mark_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-paste_clipboard"><strong>paste_clipboard</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-place_cursor"><strong>place_cursor</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-register_deserialize_format"><strong>register_deserialize_format</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-register_deserialize_tagset"><strong>register_deserialize_tagset</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-register_serialize_format"><strong>register_serialize_format</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-register_serialize_tagset"><strong>register_serialize_tagset</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-remove_all_tags"><strong>remove_all_tags</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-remove_selection_clipboard"><strong>remove_selection_clipboard</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-remove_tag"><strong>remove_tag</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-remove_tag_by_name"><strong>remove_tag_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-select_range"><strong>select_range</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-serialize"><strong>serialize</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-set_modified"><strong>set_modified</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-set_text"><strong>set_text</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-unregister_deserialize_format"><strong>unregister_deserialize_format</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-unregister_serialize_format"><strong>unregister_serialize_format</strong></a>(...)</dt></dl>

<hr>
Data descriptors inherited from <a href="gtk.html#TextBuffer">gtk.TextBuffer</a>:<br>
<dl><dt><strong>tag_table</strong></dt>
</dl>
<hr>
Data and other attributes inherited from <a href="gtk.html#TextBuffer">gtk.TextBuffer</a>:<br>
<dl><dt><strong>__gtype__</strong> = &lt;GType GtkTextBuffer (166377888)&gt;</dl>

<dl><dt><strong>do_apply_tag</strong> = &lt;built-in method do_apply_tag of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_begin_user_action</strong> = &lt;built-in method do_begin_user_action of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_changed</strong> = &lt;built-in method do_changed of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_delete_range</strong> = &lt;built-in method do_delete_range of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_end_user_action</strong> = &lt;built-in method do_end_user_action of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_insert_child_anchor</strong> = &lt;built-in method do_insert_child_anchor of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_insert_pixbuf</strong> = &lt;built-in method do_insert_pixbuf of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_insert_text</strong> = &lt;built-in method do_insert_text of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_mark_deleted</strong> = &lt;built-in method do_mark_deleted of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_mark_set</strong> = &lt;built-in method do_mark_set of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_modified_changed</strong> = &lt;built-in method do_modified_changed of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<dl><dt><strong>do_remove_tag</strong> = &lt;built-in method do_remove_tag of GObjectMeta object at 0xa1cd1ec&gt;</dl>

<hr>
Methods inherited from <a href="gobject._gobject.html#GObject">gobject._gobject.GObject</a>:<br>
<dl><dt><a name="CodeBuffer-__cmp__"><strong>__cmp__</strong></a>(...)</dt><dd><tt>x.<a href="#CodeBuffer-__cmp__">__cmp__</a>(y)&nbsp;&lt;==&gt;&nbsp;cmp(x,y)</tt></dd></dl>

<dl><dt><a name="CodeBuffer-__copy__"><strong>__copy__</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-__deepcopy__"><strong>__deepcopy__</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-__delattr__"><strong>__delattr__</strong></a>(...)</dt><dd><tt>x.<a href="#CodeBuffer-__delattr__">__delattr__</a>('name')&nbsp;&lt;==&gt;&nbsp;del&nbsp;x.name</tt></dd></dl>

<dl><dt><a name="CodeBuffer-__gobject_init__"><strong>__gobject_init__</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-__hash__"><strong>__hash__</strong></a>(...)</dt><dd><tt>x.<a href="#CodeBuffer-__hash__">__hash__</a>()&nbsp;&lt;==&gt;&nbsp;hash(x)</tt></dd></dl>

<dl><dt><a name="CodeBuffer-__repr__"><strong>__repr__</strong></a>(...)</dt><dd><tt>x.<a href="#CodeBuffer-__repr__">__repr__</a>()&nbsp;&lt;==&gt;&nbsp;repr(x)</tt></dd></dl>

<dl><dt><a name="CodeBuffer-__setattr__"><strong>__setattr__</strong></a>(...)</dt><dd><tt>x.<a href="#CodeBuffer-__setattr__">__setattr__</a>('name',&nbsp;value)&nbsp;&lt;==&gt;&nbsp;x.name&nbsp;=&nbsp;value</tt></dd></dl>

<dl><dt><a name="CodeBuffer-chain"><strong>chain</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-connect"><strong>connect</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-connect_after"><strong>connect_after</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-connect_object"><strong>connect_object</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-connect_object_after"><strong>connect_object_after</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-disconnect"><strong>disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-disconnect_by_func"><strong>disconnect_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-emit"><strong>emit</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-emit_stop_by_name"><strong>emit_stop_by_name</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-freeze_notify"><strong>freeze_notify</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_data"><strong>get_data</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_properties"><strong>get_properties</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-get_property"><strong>get_property</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_block"><strong>handler_block</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_block_by_func"><strong>handler_block_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_disconnect"><strong>handler_disconnect</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_is_connected"><strong>handler_is_connected</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_unblock"><strong>handler_unblock</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-handler_unblock_by_func"><strong>handler_unblock_by_func</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-notify"><strong>notify</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-set_data"><strong>set_data</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-set_properties"><strong>set_properties</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-set_property"><strong>set_property</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-stop_emission"><strong>stop_emission</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-thaw_notify"><strong>thaw_notify</strong></a>(...)</dt></dl>

<dl><dt><a name="CodeBuffer-weak_ref"><strong>weak_ref</strong></a>(...)</dt></dl>

<hr>
Data descriptors inherited from <a href="gobject._gobject.html#GObject">gobject._gobject.GObject</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
</dl>
<dl><dt><strong>__grefcount__</strong></dt>
</dl>
<hr>
Data and other attributes inherited from <a href="gobject._gobject.html#GObject">gobject._gobject.GObject</a>:<br>
<dl><dt><strong>__gdoc__</strong> = 'Object GtkTextBuffer<font color="#c040c0">\n\n</font> This class extends the gt...nation<font color="#c040c0">\n\n</font>Signals from GObject:<font color="#c040c0">\n</font>  notify (GParam)<font color="#c040c0">\n\n</font>'</dl>

<dl><dt><strong>__new__</strong> = &lt;built-in method __new__ of GObjectMeta object at 0xb7a75e80&gt;<dd><tt>T.<a href="#CodeBuffer-__new__">__new__</a>(S,&nbsp;...)&nbsp;-&gt;&nbsp;a&nbsp;new&nbsp;object&nbsp;with&nbsp;type&nbsp;S,&nbsp;a&nbsp;subtype&nbsp;of&nbsp;T</tt></dl>

<dl><dt><strong>props</strong> = &lt;gobject.GProps object at 0xa1995ec&gt;</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="KeywordList">class <strong>KeywordList</strong></a>(<a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#Pattern">Pattern</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;may&nbsp;be&nbsp;used&nbsp;for&nbsp;hard-code&nbsp;a&nbsp;syntax-definition.&nbsp;It&nbsp;specifies&nbsp;<br>
a&nbsp;pattern&nbsp;for&nbsp;a&nbsp;keyword-list.&nbsp;This&nbsp;simplifies&nbsp;the&nbsp;definition&nbsp;of&nbsp;<br>
keyword-lists.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="KeywordList-__init__"><strong>__init__</strong></a>(self, keywords, style<font color="#909090">='keyword'</font>, flags<font color="#909090">=''</font>)</dt><dd><tt>The&nbsp;constructor&nbsp;takes&nbsp;at&nbsp;least&nbsp;on&nbsp;argument:&nbsp;A&nbsp;list&nbsp;of&nbsp;strings&nbsp;<br>
specifying&nbsp;the&nbsp;keywords&nbsp;to&nbsp;highlight.&nbsp;<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;style&nbsp;specifies&nbsp;the&nbsp;style&nbsp;used&nbsp;to&nbsp;highlight&nbsp;these<br>
keywords.&nbsp;<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;flags&nbsp;specifies&nbsp;the&nbsp;flags&nbsp;for&nbsp;the&nbsp;<br>
(internal&nbsp;generated)&nbsp;regular-expression.</tt></dd></dl>

<hr>
Methods inherited from <a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#Pattern">Pattern</a>:<br>
<dl><dt><a name="KeywordList-__call__"><strong>__call__</strong></a>(self, txt, start, end)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="LanguageDefinition">class <strong>LanguageDefinition</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;is&nbsp;a&nbsp;container&nbsp;class&nbsp;for&nbsp;all&nbsp;rules&nbsp;(<a href="#Pattern">Pattern</a>,&nbsp;<a href="#KeywordList">KeywordList</a>,&nbsp;<br>
...)&nbsp;specifying&nbsp;the&nbsp;language.&nbsp;You&nbsp;have&nbsp;to&nbsp;used&nbsp;this&nbsp;class&nbsp;if&nbsp;you&nbsp;like<br>
to&nbsp;hard-code&nbsp;your&nbsp;syntax-definition.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="LanguageDefinition-__call__"><strong>__call__</strong></a>(self, buf, start, end<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="LanguageDefinition-__init__"><strong>__init__</strong></a>(self, rules)</dt><dd><tt>The&nbsp;constructor&nbsp;takes&nbsp;only&nbsp;one&nbsp;argument:&nbsp;A&nbsp;list&nbsp;of&nbsp;rules&nbsp;(i.e&nbsp;<br>
<a href="#Pattern">Pattern</a>,&nbsp;<a href="#KeywordList">KeywordList</a>&nbsp;and&nbsp;<a href="#String">String</a>).</tt></dd></dl>

<dl><dt><a name="LanguageDefinition-get_styles"><strong>get_styles</strong></a>(self)</dt></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Pattern">class <strong>Pattern</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>More&nbsp;or&nbsp;less&nbsp;internal&nbsp;used&nbsp;class&nbsp;representing&nbsp;a&nbsp;pattern.&nbsp;You&nbsp;may&nbsp;use&nbsp;<br>
this&nbsp;class&nbsp;to&nbsp;"hard-code"&nbsp;your&nbsp;syntax-definition.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="Pattern-__call__"><strong>__call__</strong></a>(self, txt, start, end)</dt></dl>

<dl><dt><a name="Pattern-__init__"><strong>__init__</strong></a>(self, regexp, style<font color="#909090">='DEFAULT'</font>, group<font color="#909090">=0</font>, flags<font color="#909090">=''</font>)</dt><dd><tt>The&nbsp;constructor&nbsp;takes&nbsp;at&nbsp;least&nbsp;on&nbsp;argument:&nbsp;the&nbsp;regular-expression.<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;style&nbsp;defines&nbsp;the&nbsp;style&nbsp;applied&nbsp;to&nbsp;the&nbsp;string<br>
matched&nbsp;by&nbsp;the&nbsp;regexp.&nbsp;<br>
&nbsp;<br>
The&nbsp;kwarg&nbsp;group&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;define&nbsp;which&nbsp;group&nbsp;of&nbsp;the&nbsp;regular&nbsp;<br>
expression&nbsp;will&nbsp;be&nbsp;used&nbsp;for&nbsp;highlighting&nbsp;(Note:&nbsp;This&nbsp;means&nbsp;that&nbsp;only<br>
the&nbsp;selected&nbsp;group&nbsp;will&nbsp;be&nbsp;highlighted&nbsp;but&nbsp;the&nbsp;complete&nbsp;pattern&nbsp;must<br>
match!)<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;flags&nbsp;specifies&nbsp;flags&nbsp;for&nbsp;the&nbsp;regular&nbsp;expression.<br>
Look&nbsp;at&nbsp;the&nbsp;Python&nbsp;lib-ref&nbsp;for&nbsp;a&nbsp;list&nbsp;of&nbsp;flags&nbsp;and&nbsp;there&nbsp;meaning.</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="String">class <strong>String</strong></a></font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;may&nbsp;be&nbsp;used&nbsp;to&nbsp;hard-code&nbsp;a&nbsp;syntax-definition.&nbsp;It&nbsp;simplifies&nbsp;<br>
the&nbsp;definition&nbsp;of&nbsp;a&nbsp;"string".&nbsp;A&nbsp;"string"&nbsp;is&nbsp;something&nbsp;that&nbsp;consists&nbsp;of<br>
a&nbsp;start-pattern&nbsp;and&nbsp;an&nbsp;end-pattern.&nbsp;The&nbsp;end-pattern&nbsp;may&nbsp;be&nbsp;content&nbsp;of&nbsp;<br>
the&nbsp;string&nbsp;if&nbsp;it&nbsp;is&nbsp;escaped.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="String-__call__"><strong>__call__</strong></a>(self, txt, start, end)</dt></dl>

<dl><dt><a name="String-__init__"><strong>__init__</strong></a>(self, starts, ends, escape<font color="#909090">=None</font>, style<font color="#909090">='string'</font>)</dt><dd><tt>The&nbsp;constructor&nbsp;needs&nbsp;at&nbsp;least&nbsp;two&nbsp;arguments:&nbsp;The&nbsp;start-&nbsp;and&nbsp;<br>
end-pattern.&nbsp;<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;escape&nbsp;specifies&nbsp;a&nbsp;escape-sequence&nbsp;escaping&nbsp;the&nbsp;<br>
end-pattern.<br>
&nbsp;<br>
The&nbsp;optional&nbsp;kwarg&nbsp;style&nbsp;specifies&nbsp;the&nbsp;style&nbsp;used&nbsp;to&nbsp;highlight&nbsp;the<br>
string.</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="SyntaxLoader">class <strong>SyntaxLoader</strong></a>(<a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a>, <a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>This&nbsp;class&nbsp;loads&nbsp;a&nbsp;syntax&nbsp;definition.&nbsp;There&nbsp;have&nbsp;to&nbsp;be&nbsp;a&nbsp;file<br>
named&nbsp;LANGUAGENAME.xml&nbsp;in&nbsp;one&nbsp;of&nbsp;the&nbsp;directories&nbsp;specified&nbsp;in&nbsp;the<br>
global&nbsp;path-list.&nbsp;You&nbsp;may&nbsp;add&nbsp;a&nbsp;directory&nbsp;using&nbsp;the&nbsp;<a href="#-add_syntax_path">add_syntax_path</a>()<br>
function.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#SyntaxLoader">SyntaxLoader</a></dd>
<dd><a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a></dd>
<dd><a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="SyntaxLoader-__init__"><strong>__init__</strong></a>(self, lang_name)</dt><dd><tt>The&nbsp;constructor&nbsp;takes&nbsp;only&nbsp;one&nbsp;argument:&nbsp;the&nbsp;language&nbsp;name.<br>
The&nbsp;constructor&nbsp;tries&nbsp;to&nbsp;load&nbsp;the&nbsp;syntax-definition&nbsp;from&nbsp;a&nbsp;<br>
syntax-file&nbsp;in&nbsp;one&nbsp;directory&nbsp;of&nbsp;the&nbsp;global&nbsp;path-list.&nbsp;<br>
&nbsp;<br>
An&nbsp;instance&nbsp;of&nbsp;this&nbsp;class&nbsp;IS&nbsp;a&nbsp;<a href="#LanguageDefinition">LanguageDefinition</a>.&nbsp;You&nbsp;can&nbsp;pass&nbsp;it<br>
to&nbsp;the&nbsp;constructor&nbsp;of&nbsp;the&nbsp;<a href="#CodeBuffer">CodeBuffer</a>&nbsp;class.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-characters"><strong>characters</strong></a>(self, txt)</dt></dl>

<dl><dt><a name="SyntaxLoader-chars_ends"><strong>chars_ends</strong></a>(self, txt)</dt></dl>

<dl><dt><a name="SyntaxLoader-chars_keyword"><strong>chars_keyword</strong></a>(self, txt)</dt></dl>

<dl><dt><a name="SyntaxLoader-chars_pattern"><strong>chars_pattern</strong></a>(self, txt)</dt></dl>

<dl><dt><a name="SyntaxLoader-chars_property"><strong>chars_property</strong></a>(self, value)</dt></dl>

<dl><dt><a name="SyntaxLoader-chars_starts"><strong>chars_starts</strong></a>(self, txt)</dt></dl>

<dl><dt><a name="SyntaxLoader-endDocument"><strong>endDocument</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-endElement"><strong>endElement</strong></a>(self, name)</dt></dl>

<dl><dt><a name="SyntaxLoader-end_keyword"><strong>end_keyword</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-end_keywordlist"><strong>end_keywordlist</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-end_pattern"><strong>end_pattern</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-end_string"><strong>end_string</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-end_style"><strong>end_style</strong></a>(self)</dt></dl>

<dl><dt><a name="SyntaxLoader-startDocument"><strong>startDocument</strong></a>(self)</dt><dd><tt>#&nbsp;Dispatch&nbsp;start/end&nbsp;-&nbsp;document/element&nbsp;and&nbsp;chars</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-startElement"><strong>startElement</strong></a>(self, name, attr)</dt></dl>

<dl><dt><a name="SyntaxLoader-start_keyword"><strong>start_keyword</strong></a>(self, attr)</dt></dl>

<dl><dt><a name="SyntaxLoader-start_keywordlist"><strong>start_keywordlist</strong></a>(self, attr)</dt><dd><tt>#&nbsp;handle&nbsp;keyword-lists</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-start_pattern"><strong>start_pattern</strong></a>(self, attr)</dt><dd><tt>#&nbsp;Handle&nbsp;regexp-patterns</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-start_property"><strong>start_property</strong></a>(self, attr)</dt></dl>

<dl><dt><a name="SyntaxLoader-start_string"><strong>start_string</strong></a>(self, attr)</dt><dd><tt>#handle&nbsp;<a href="#String">String</a>-definitions</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-start_style"><strong>start_style</strong></a>(self, attr)</dt><dd><tt>#&nbsp;handle&nbsp;style</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>style_scale_table</strong> = {'large': 1.2, 'medium': 1.0, 'small': 0.83333333333329995, 'x_large': 1.4399999999999, 'x_small': 0.64444444444439997, 'xx_large': 1.728, 'xx_small': 0.57870370370369995}</dl>

<dl><dt><strong>style_style_table</strong> = {'italic': &lt;enum PANGO_STYLE_ITALIC of type PangoStyle&gt;, 'normal': &lt;enum PANGO_STYLE_NORMAL of type PangoStyle&gt;, 'oblique': &lt;enum PANGO_STYLE_OBLIQUE of type PangoStyle&gt;}</dl>

<dl><dt><strong>style_underline_table</strong> = {'double': &lt;enum PANGO_UNDERLINE_DOUBLE of type PangoUnderline&gt;, 'none': &lt;enum PANGO_UNDERLINE_NONE of type PangoUnderline&gt;, 'single': &lt;enum PANGO_UNDERLINE_SINGLE of type PangoUnderline&gt;}</dl>

<dl><dt><strong>style_variant_table</strong> = {'normal': &lt;enum PANGO_VARIANT_NORMAL of type PangoVariant&gt;, 'smallcaps': &lt;enum PANGO_VARIANT_SMALL_CAPS of type PangoVariant&gt;}</dl>

<dl><dt><strong>style_weight_table</strong> = {'bold': &lt;enum PANGO_WEIGHT_BOLD of type PangoWeight&gt;, 'heavy': &lt;enum PANGO_WEIGHT_HEAVY of type PangoWeight&gt;, 'light': &lt;enum PANGO_WEIGHT_LIGHT of type PangoWeight&gt;, 'normal': &lt;enum PANGO_WEIGHT_NORMAL of type PangoWeight&gt;, 'ultrabold': &lt;enum PANGO_WEIGHT_ULTRABOLD of type PangoWeight&gt;, 'ultralight': &lt;enum PANGO_WEIGHT_ULTRALIGHT of type PangoWeight&gt;}</dl>

<hr>
Methods inherited from <a href="xml.sax.handler.html#ContentHandler">xml.sax.handler.ContentHandler</a>:<br>
<dl><dt><a name="SyntaxLoader-endElementNS"><strong>endElementNS</strong></a>(self, name, qname)</dt><dd><tt>Signals&nbsp;the&nbsp;end&nbsp;of&nbsp;an&nbsp;element&nbsp;in&nbsp;namespace&nbsp;mode.<br>
&nbsp;<br>
The&nbsp;name&nbsp;parameter&nbsp;contains&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;element&nbsp;type,&nbsp;just<br>
as&nbsp;with&nbsp;the&nbsp;startElementNS&nbsp;event.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-endPrefixMapping"><strong>endPrefixMapping</strong></a>(self, prefix)</dt><dd><tt>End&nbsp;the&nbsp;scope&nbsp;of&nbsp;a&nbsp;prefix-URI&nbsp;mapping.<br>
&nbsp;<br>
See&nbsp;startPrefixMapping&nbsp;for&nbsp;details.&nbsp;This&nbsp;event&nbsp;will&nbsp;always<br>
occur&nbsp;after&nbsp;the&nbsp;corresponding&nbsp;endElement&nbsp;event,&nbsp;but&nbsp;the&nbsp;order<br>
of&nbsp;endPrefixMapping&nbsp;events&nbsp;is&nbsp;not&nbsp;otherwise&nbsp;guaranteed.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-ignorableWhitespace"><strong>ignorableWhitespace</strong></a>(self, whitespace)</dt><dd><tt>Receive&nbsp;notification&nbsp;of&nbsp;ignorable&nbsp;whitespace&nbsp;in&nbsp;element&nbsp;content.<br>
&nbsp;<br>
Validating&nbsp;Parsers&nbsp;must&nbsp;use&nbsp;this&nbsp;method&nbsp;to&nbsp;report&nbsp;each&nbsp;chunk<br>
of&nbsp;ignorable&nbsp;whitespace&nbsp;(see&nbsp;the&nbsp;W3C&nbsp;XML&nbsp;1.0&nbsp;recommendation,<br>
section&nbsp;2.10):&nbsp;non-validating&nbsp;parsers&nbsp;may&nbsp;also&nbsp;use&nbsp;this&nbsp;method<br>
if&nbsp;they&nbsp;are&nbsp;capable&nbsp;of&nbsp;parsing&nbsp;and&nbsp;using&nbsp;content&nbsp;models.<br>
&nbsp;<br>
SAX&nbsp;parsers&nbsp;may&nbsp;return&nbsp;all&nbsp;contiguous&nbsp;whitespace&nbsp;in&nbsp;a&nbsp;single<br>
chunk,&nbsp;or&nbsp;they&nbsp;may&nbsp;split&nbsp;it&nbsp;into&nbsp;several&nbsp;chunks;&nbsp;however,&nbsp;all<br>
of&nbsp;the&nbsp;characters&nbsp;in&nbsp;any&nbsp;single&nbsp;event&nbsp;must&nbsp;come&nbsp;from&nbsp;the&nbsp;same<br>
external&nbsp;entity,&nbsp;so&nbsp;that&nbsp;the&nbsp;Locator&nbsp;provides&nbsp;useful<br>
information.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-processingInstruction"><strong>processingInstruction</strong></a>(self, target, data)</dt><dd><tt>Receive&nbsp;notification&nbsp;of&nbsp;a&nbsp;processing&nbsp;instruction.<br>
&nbsp;<br>
The&nbsp;Parser&nbsp;will&nbsp;invoke&nbsp;this&nbsp;method&nbsp;once&nbsp;for&nbsp;each&nbsp;processing<br>
instruction&nbsp;found:&nbsp;note&nbsp;that&nbsp;processing&nbsp;instructions&nbsp;may&nbsp;occur<br>
before&nbsp;or&nbsp;after&nbsp;the&nbsp;main&nbsp;document&nbsp;element.<br>
&nbsp;<br>
A&nbsp;SAX&nbsp;parser&nbsp;should&nbsp;never&nbsp;report&nbsp;an&nbsp;XML&nbsp;declaration&nbsp;(XML&nbsp;1.0,<br>
section&nbsp;2.8)&nbsp;or&nbsp;a&nbsp;text&nbsp;declaration&nbsp;(XML&nbsp;1.0,&nbsp;section&nbsp;4.3.1)<br>
using&nbsp;this&nbsp;method.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-setDocumentLocator"><strong>setDocumentLocator</strong></a>(self, locator)</dt><dd><tt>Called&nbsp;by&nbsp;the&nbsp;parser&nbsp;to&nbsp;give&nbsp;the&nbsp;application&nbsp;a&nbsp;locator&nbsp;for<br>
locating&nbsp;the&nbsp;origin&nbsp;of&nbsp;document&nbsp;events.<br>
&nbsp;<br>
SAX&nbsp;parsers&nbsp;are&nbsp;strongly&nbsp;encouraged&nbsp;(though&nbsp;not&nbsp;absolutely<br>
required)&nbsp;to&nbsp;supply&nbsp;a&nbsp;locator:&nbsp;if&nbsp;it&nbsp;does&nbsp;so,&nbsp;it&nbsp;must&nbsp;supply<br>
the&nbsp;locator&nbsp;to&nbsp;the&nbsp;application&nbsp;by&nbsp;invoking&nbsp;this&nbsp;method&nbsp;before<br>
invoking&nbsp;any&nbsp;of&nbsp;the&nbsp;other&nbsp;methods&nbsp;in&nbsp;the&nbsp;DocumentHandler<br>
interface.<br>
&nbsp;<br>
The&nbsp;locator&nbsp;allows&nbsp;the&nbsp;application&nbsp;to&nbsp;determine&nbsp;the&nbsp;end<br>
position&nbsp;of&nbsp;any&nbsp;document-related&nbsp;event,&nbsp;even&nbsp;if&nbsp;the&nbsp;parser&nbsp;is<br>
not&nbsp;reporting&nbsp;an&nbsp;error.&nbsp;Typically,&nbsp;the&nbsp;application&nbsp;will&nbsp;use<br>
this&nbsp;information&nbsp;for&nbsp;reporting&nbsp;its&nbsp;own&nbsp;errors&nbsp;(such&nbsp;as<br>
character&nbsp;content&nbsp;that&nbsp;does&nbsp;not&nbsp;match&nbsp;an&nbsp;application's<br>
business&nbsp;rules).&nbsp;The&nbsp;information&nbsp;returned&nbsp;by&nbsp;the&nbsp;locator&nbsp;is<br>
probably&nbsp;not&nbsp;sufficient&nbsp;for&nbsp;use&nbsp;with&nbsp;a&nbsp;search&nbsp;engine.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;the&nbsp;locator&nbsp;will&nbsp;return&nbsp;correct&nbsp;information&nbsp;only<br>
during&nbsp;the&nbsp;invocation&nbsp;of&nbsp;the&nbsp;events&nbsp;in&nbsp;this&nbsp;interface.&nbsp;The<br>
application&nbsp;should&nbsp;not&nbsp;attempt&nbsp;to&nbsp;use&nbsp;it&nbsp;at&nbsp;any&nbsp;other&nbsp;time.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-skippedEntity"><strong>skippedEntity</strong></a>(self, name)</dt><dd><tt>Receive&nbsp;notification&nbsp;of&nbsp;a&nbsp;skipped&nbsp;entity.<br>
&nbsp;<br>
The&nbsp;Parser&nbsp;will&nbsp;invoke&nbsp;this&nbsp;method&nbsp;once&nbsp;for&nbsp;each&nbsp;entity<br>
skipped.&nbsp;Non-validating&nbsp;processors&nbsp;may&nbsp;skip&nbsp;entities&nbsp;if&nbsp;they<br>
have&nbsp;not&nbsp;seen&nbsp;the&nbsp;declarations&nbsp;(because,&nbsp;for&nbsp;example,&nbsp;the<br>
entity&nbsp;was&nbsp;declared&nbsp;in&nbsp;an&nbsp;external&nbsp;DTD&nbsp;subset).&nbsp;All&nbsp;processors<br>
may&nbsp;skip&nbsp;external&nbsp;entities,&nbsp;depending&nbsp;on&nbsp;the&nbsp;values&nbsp;of&nbsp;the<br>
<a href="http://xml.org/sax/features/external-general-entities">http://xml.org/sax/features/external-general-entities</a>&nbsp;and&nbsp;the<br>
<a href="http://xml.org/sax/features/external-parameter-entities">http://xml.org/sax/features/external-parameter-entities</a><br>
properties.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-startElementNS"><strong>startElementNS</strong></a>(self, name, qname, attrs)</dt><dd><tt>Signals&nbsp;the&nbsp;start&nbsp;of&nbsp;an&nbsp;element&nbsp;in&nbsp;namespace&nbsp;mode.<br>
&nbsp;<br>
The&nbsp;name&nbsp;parameter&nbsp;contains&nbsp;the&nbsp;name&nbsp;of&nbsp;the&nbsp;element&nbsp;type&nbsp;as&nbsp;a<br>
(uri,&nbsp;localname)&nbsp;tuple,&nbsp;the&nbsp;qname&nbsp;parameter&nbsp;the&nbsp;raw&nbsp;XML&nbsp;1.0<br>
name&nbsp;used&nbsp;in&nbsp;the&nbsp;source&nbsp;document,&nbsp;and&nbsp;the&nbsp;attrs&nbsp;parameter<br>
holds&nbsp;an&nbsp;instance&nbsp;of&nbsp;the&nbsp;Attributes&nbsp;class&nbsp;containing&nbsp;the<br>
attributes&nbsp;of&nbsp;the&nbsp;element.<br>
&nbsp;<br>
The&nbsp;uri&nbsp;part&nbsp;of&nbsp;the&nbsp;name&nbsp;tuple&nbsp;is&nbsp;None&nbsp;for&nbsp;elements&nbsp;which&nbsp;have<br>
no&nbsp;namespace.</tt></dd></dl>

<dl><dt><a name="SyntaxLoader-startPrefixMapping"><strong>startPrefixMapping</strong></a>(self, prefix, uri)</dt><dd><tt>Begin&nbsp;the&nbsp;scope&nbsp;of&nbsp;a&nbsp;prefix-URI&nbsp;Namespace&nbsp;mapping.<br>
&nbsp;<br>
The&nbsp;information&nbsp;from&nbsp;this&nbsp;event&nbsp;is&nbsp;not&nbsp;necessary&nbsp;for&nbsp;normal<br>
Namespace&nbsp;processing:&nbsp;the&nbsp;SAX&nbsp;XML&nbsp;reader&nbsp;will&nbsp;automatically<br>
replace&nbsp;prefixes&nbsp;for&nbsp;element&nbsp;and&nbsp;attribute&nbsp;names&nbsp;when&nbsp;the<br>
<a href="http://xml.org/sax/features/namespaces">http://xml.org/sax/features/namespaces</a>&nbsp;feature&nbsp;is&nbsp;true&nbsp;(the<br>
default).<br>
&nbsp;<br>
There&nbsp;are&nbsp;cases,&nbsp;however,&nbsp;when&nbsp;applications&nbsp;need&nbsp;to&nbsp;use<br>
prefixes&nbsp;in&nbsp;character&nbsp;data&nbsp;or&nbsp;in&nbsp;attribute&nbsp;values,&nbsp;where&nbsp;they<br>
cannot&nbsp;safely&nbsp;be&nbsp;expanded&nbsp;automatically;&nbsp;the<br>
start/endPrefixMapping&nbsp;event&nbsp;supplies&nbsp;the&nbsp;information&nbsp;to&nbsp;the<br>
application&nbsp;to&nbsp;expand&nbsp;prefixes&nbsp;in&nbsp;those&nbsp;contexts&nbsp;itself,&nbsp;if<br>
necessary.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;start/endPrefixMapping&nbsp;events&nbsp;are&nbsp;not&nbsp;guaranteed&nbsp;to<br>
be&nbsp;properly&nbsp;nested&nbsp;relative&nbsp;to&nbsp;each-other:&nbsp;all<br>
startPrefixMapping&nbsp;events&nbsp;will&nbsp;occur&nbsp;before&nbsp;the&nbsp;corresponding<br>
startElement&nbsp;event,&nbsp;and&nbsp;all&nbsp;endPrefixMapping&nbsp;events&nbsp;will&nbsp;occur<br>
after&nbsp;the&nbsp;corresponding&nbsp;endElement&nbsp;event,&nbsp;but&nbsp;their&nbsp;order&nbsp;is<br>
not&nbsp;guaranteed.</tt></dd></dl>

<hr>
Methods inherited from <a href="GUI.lib.pygtkcodebuffer.gtkcodebuffer.html#LanguageDefinition">LanguageDefinition</a>:<br>
<dl><dt><a name="SyntaxLoader-__call__"><strong>__call__</strong></a>(self, buf, start, end<font color="#909090">=None</font>)</dt></dl>

<dl><dt><a name="SyntaxLoader-get_styles"><strong>get_styles</strong></a>(self)</dt></dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-add_syntax_path"><strong>add_syntax_path</strong></a>(path_or_list)</dt><dd><tt>This&nbsp;function&nbsp;adds&nbsp;one&nbsp;(string)&nbsp;or&nbsp;many&nbsp;(list&nbsp;of&nbsp;strings)&nbsp;paths&nbsp;to&nbsp;the&nbsp;<br>
global&nbsp;search-paths&nbsp;for&nbsp;syntax-files.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>DEBUG_FLAG</strong> = False<br>
<strong>DEFAULT_STYLES</strong> = {'DEFAULT': {'font': 'monospace'}, 'comment': {'foreground': '#0000FF'}, 'datatype': {'foreground': '#2E8B57', 'weight': &lt;enum PANGO_WEIGHT_BOLD of type PangoWeight&gt;}, 'function': {'foreground': '#008A8C'}, 'keyword': {'foreground': '#A52A2A', 'weight': &lt;enum PANGO_WEIGHT_BOLD of type PangoWeight&gt;}, 'link': {'foreground': '#0000FF', 'underline': &lt;enum PANGO_UNDERLINE_SINGLE of type PangoUnderline&gt;}, 'mark1': {'foreground': '#008B8B'}, 'mark2': {'foreground': '#6A5ACD'}, 'number': {'foreground': '#FF00FF'}, 'preprocessor': {'foreground': '#A020F0'}, ...}<br>
<strong>SYNTAX_PATH</strong> = ['./syntax', '/home/john/bin/game-baker/trunk/GUI/lib/pygtkcodebuffer', '/home/john/.pygtkcodebuffer', '/usr/share/pygtkcodebuffer/syntax']<br>
<strong>__author__</strong> = 'Hannes Matuschek &lt;hmatuschek@gmail.com&gt;'<br>
<strong>__version__</strong> = '1.0RC2'<br>
<strong>this_module_path</strong> = '/home/john/bin/game-baker/trunk/GUI/lib/pygtkcodebuffer'</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#7799ee">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
    
<tr><td bgcolor="#7799ee"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%">Hannes&nbsp;Matuschek&nbsp;&lt;hmatuschek@gmail.com&gt;</td></tr></table>
</body></html>